m = int(input())
n = int(input())
"""
x+y*m = 8*m
x+y*n = 6*n
=> y =(n*6-m*8)/(n-m)

x+y*z = 10 * z
=> z = x/(10-y)
"""


y = (n*6-m*8)/(n-m)
x = 6*n-y*n
z = x/(10-y)
print(f"原有排队游客份数:{x:.1f}, 每分钟新到游客份数:{y:.1f}, 10口同开需{z:.1f}分钟清零待检票游客.")